﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddNumbers.aspx.vb" Inherits="FishTank.AddNumbers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:TextBox ID="txt_NumberLeft" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="vld_LeftNumberValidator" runat="server" 
            ControlToValidate="txt_NumberLeft" Display="Dynamic" 
            ErrorMessage="Value is not a number" Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
        <asp:RequiredFieldValidator ID="vld_LeftNumberRequired" runat="server" 
            ControlToValidate="txt_NumberLeft" ErrorMessage="A number is required" 
            Display="Dynamic"></asp:RequiredFieldValidator>
        &nbsp;+&nbsp;
        <asp:TextBox ID="txt_NumberRight" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="vld_RightNumberValidator" runat="server" 
            ControlToValidate="txt_NumberRight" Display="Dynamic" 
            ErrorMessage="Value is not a number" Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
        <asp:RequiredFieldValidator ID="vld_RightNumberRequired" runat="server" 
            ControlToValidate="txt_NumberRight" ErrorMessage="A number is required" 
            Display="Dynamic"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;
        <asp:Button ID="btn_Calculate" runat="server" Text="Calculate" />
    </p>
    <p>
        <strong>Result</strong>
        &nbsp;=&nbsp;
        <asp:Label ID="lbl_Result" runat="server" Text=""></asp:Label>
    </p>
</asp:Content>
